#include<bits/stdc++.h>
using namespace std;

int pd(int tmp){
    if(tmp < 2) return 0;
    for(int i = 2;i<sqrt(tmp);i++){
        if(tmp % i == 0) return 0;
    }
    return 1;
}

int main(){
    string str;
    cin>>str;

    int sz = str.size();
    int hash[1005] = {0};

    for(int i = 0;i<sz;i++){
        hash[str[i]]++;
    }

    int maxn = INT_MIN;
    int minn = INT_MAX;
    for(int i = 0;i<sz;i++){
        maxn = max(maxn,hash[str[i]]);
        minn = min(minn,hash[str[i]]);
    }


    int tmp = maxn - minn;
    //判断是不是质数
    int ret = pd(tmp);//0不是，1是
    if(ret){
        cout<<"Lucky Word"<<endl;
        cout<<tmp<<endl;
    }else{
        cout<<"No Answer"<<endl;
        cout<<0<<endl;
    }



    return 0;
}